]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
app-menu: Fix quit menu item
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 5 Nov 2010 17:48:04 +0000 (18:48 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 5 Nov 2010 18:02:53 +0000 (19:02 +0100)
As popup menus now take focus for keyboard navigation, no application
is focused when activating the menu. Use the target application instead,
which keeps track of the application currently associated with the menu.

https://bugzilla.gnome.org/show_bug.cgi?id=634103

js/ui/panel.js

index eb1e4a378b4e6567333b0a71a07dbb7fb704c687..28669951650ef77cfdb6ace169819a7dbb9432bd 100644 (file)
@@ -408,9 +408,9 @@ AppMenuButton.prototype = {
     },
 
     _onQuit: function() {
-        if (this._focusedApp == null)
+        if (this._targetApp == null)
             return;
-        this._focusedApp.request_quit();
+        this._targetApp.request_quit();
     },
 
     _onAppStateChanged: function(tracker, app) {